package com.demo.builder;

/**
 * @Author likz
 * @Date 2025/7/24 9:54
 * @Description 指挥者
 **/
public class Director {

    private Builder mBuilder;

    public Director(Builder builder) {
        mBuilder = builder;
    }

    public Bike construct() {
        mBuilder.buildFrame();
        mBuilder.buildSeat();
        return mBuilder.createBike();
    }

}
